package com.healthy.entity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 
 * @author HGB丶阳光
 * @date 2020年6月10日
 * @description: 评论实体类创建
 *
 */
@JsonIgnoreProperties(value = {"handler"})
public class YgComments implements java.io.Serializable {
	
	/**
	 * 解决复杂实体类之间产生的序列化问题
	 */
	private static final long serialVersionUID = -3282751089997565670L;
	
	private String cid;        // 评论主键 cid
	private Date postTime;     // 评论发布时间，必须字段
	private Integer level;     // 评论等级（1，2，3）级，必须字段
	private String byCid;      // 二级评论标识符，需要对应某一个一级评论id
	private String comment;    // 评论内容，必须字段
	private YgMerch merch;     // 商品表,主键mid
	private YgUsers users;     // 用户表,主键uid

	
	
	public YgComments(String cid, Date postTime, Integer level, String byCid, String comment, YgMerch merch,
			YgUsers users) {
		super();
		this.cid = cid;
		this.postTime = postTime;
		this.level = level;
		this.byCid = byCid;
		this.comment = comment;
		this.merch = merch;
		this.users = users;
	}

	public YgComments() {
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public Date getPostTime() {
		return postTime;
	}

	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getByCid() {
		return byCid;
	}

	public void setByCid(String byCid) {
		this.byCid = byCid;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public YgMerch getMerch() {
		return merch;
	}

	public void setMerch(YgMerch merch) {
		this.merch = merch;
	}

	public YgUsers getUsers() {
		return users;
	}

	public void setUsers(YgUsers users) {
		this.users = users;
	}

	@Override
	public String toString() {
		return "YgComments [cid=" + cid + ", postTime=" + postTime + ", level=" + level + ", byCid=" + byCid
				+ ", comment=" + comment + ", merch=" + merch + ", users=" + users + "]";
	}
	
	
}
